<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FacilityManagement.ascx.cs" Inherits="admin_FacilityManagement" %>
<%@ Register Assembly="FredCK.FCKeditorV2, Version=2.6.3.22452, Culture=neutral, PublicKeyToken=4f86767c9b519a06"
    Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<table>
    <tr>
        <td style="width: 111px">
            <asp:Label ID="Label1" runat="server" Text="Name:"></asp:Label></td>
        <td style="width: 100px">
            <asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
        <td style="width: 100px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                ErrorMessage="Invalid value" ValidationGroup="A">*</asp:RequiredFieldValidator></td>
        <td style="width: 220px">
        </td>
        <td style="width: 100px">
        </td>
    </tr>
    <tr>
        <td style="width: 111px">
            <asp:Label ID="Label2" runat="server" Text="Type:"></asp:Label></td>
        <td style="width: 100px">
            <asp:DropDownList ID="cmbCategory" runat="server">
            </asp:DropDownList></td>
        <td style="width: 100px">
        </td>
        <td colspan="2">
            <asp:Label ID="Label4" runat="server" Text="Published:"></asp:Label><asp:CheckBox
                ID="chkState" runat="server" /></td>
    </tr>
    <tr>
        <td style="width: 111px">
            <asp:Label ID="Label10" runat="server" Text="Price:"></asp:Label></td>
        <td style="width: 100px">
            <asp:TextBox ID="txtPrice" runat="server">0</asp:TextBox></td>
        <td style="width: 100px">
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPrice"
                ErrorMessage="Invalid value for Price" ValidationGroup="A" Display="Dynamic" ValidationExpression="\d+(\.\d+)?">*</asp:RegularExpressionValidator><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPrice" Display="Dynamic"
                    ErrorMessage="Please specify price" ValidationGroup="A">*</asp:RequiredFieldValidator></td>
        <td colspan="2">
            <asp:LinkButton ID="lnkAdd" runat="server" CssClass="c_button" ValidationGroup="A" OnClick="lnkAdd_Click">Add</asp:LinkButton>
            <asp:LinkButton ID="lnkUpdate" runat="server" CssClass="c_button" OnClick="lnkUpdate_Click">Update</asp:LinkButton>
            <asp:LinkButton ID="lnkDelete" runat="server" CssClass="c_button" OnClick="lnkDelete_Click">Delete</asp:LinkButton>
            </td>
    </tr>
    <tr>
        <td style="width: 111px">
            <asp:Label ID="Label9" runat="server" Text="Discount:"></asp:Label></td>
        <td style="width: 100px">
            <asp:TextBox ID="txtDiscount" runat="server">0</asp:TextBox></td>
        <td style="width: 100px">
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtDiscount"
                ErrorMessage="Invalid value for Discount" ValidationGroup="A" Display="Dynamic" ValidationExpression="\d+(\.\d+)?">*</asp:RegularExpressionValidator><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDiscount" Display="Dynamic"
                    ErrorMessage="Please specify discount amount" ValidationGroup="A">*</asp:RequiredFieldValidator></td>
        <td colspan="2">
        </td>
    </tr>
    <tr>
        <td style="width: 111px; height: 9px">
            <asp:Label ID="Label5" runat="server" Text="Description:"></asp:Label></td>
        <td style="width: 100px; height: 9px">
            <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox></td>
        <td style="width: 100px; height: 9px">
        </td>
        <td style="width: 220px; height: 9px">
            &nbsp;</td>
        <td style="width: 100px; height: 9px">
        </td>
    </tr>
    <tr>
        <td style="width: 111px; height: 24px">
            <asp:Label ID="Label6" runat="server" Text="Image URL:"></asp:Label></td>
        <td style="height: 24px">
            <input id="txtImage" name="txtImage" type="text" value="<%=ImageURL %>"/></td>
        <td style="height: 24px">
            &nbsp;<input id="btnBrowseImage" onclick="browseFile()" type="button" value="Browse" /></td>
        <td style="width: 220px; height: 24px">
        </td>
        <td style="width: 100px; height: 24px">
        </td>
    </tr>
    <tr>
        <td style="width: 111px">
        </td>
        <td style="width: 100px">
            <img id="imgRepresentimage" src="<%=ImageURL %>" /></td>
        <td style="width: 100px">
        </td>
        <td style="width: 220px">
        </td>
        <td style="width: 100px">
        </td>
    </tr>
    <tr>
        <td style="width: 111px">
            Article:</td>
        <td style="width: 100px">
        </td>
        <td style="width: 100px">
        </td>
        <td style="width: 220px">
        </td>
        <td style="width: 100px">
        </td>
    </tr>
    <tr>
        <td colspan="5">
            <fckeditorv2:fckeditor id="FCKeditor1" runat="server" basepath="~/fckeditor/" height="400px"></fckeditorv2:fckeditor>
        </td>
    </tr>
    <tr>
    </tr>
    <tr>
    </tr>
</table>
<script type="text/javascript" language="javascript">    
	window.location.hash="<%=ActiveAccording %>";
</script>
